package cate.game.role.pvp.championrace.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBChampionRace;
import cate.game.pvp.championrace.data.ChampionRaceSpec;

public class ChampionRaceRoundReportReq implements MsgInput {
    public ChampionRaceSpec from;
    public ChampionRaceSpec to;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        ChampionRaceRoundReportResp r = game.pvp.championRace.getBizHandler().getRoundReports(cc.getRole().getUid(), this);
        if (r != null) {
            cc.sendNow(r);
        }
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBChampionRace.ROUND_REPORT_REQ;
    }
}
